PUB_M = conn basic bs ./
PUB_PATH = ./../public/
INC_PATH = $(addprefix $(PUB_PATH), $(PUB_M))
INCLUDE = $(addprefix -I, $(INC_PATH))

LIB_M = bs pthread mongoclient boost_thread-mt boost_filesystem boost_program_options boost_system
LIB = $(addprefix -l, $(LIB_M))

dbserver:
	g++ -o server main.cpp logic.cpp server.cpp db_interface.cpp wa_exception.cpp -g $(INCLUDE) -L $(PUB_PATH)/lib64 $(LIB)
clean:
	rm server
